<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {volist name='list' id='vo'}
        {if $vo.group_id eq 2}
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">晋升{$vo.name}条件:</label>
                <div class="col-xs-12 col-sm-8">
                    <ul style="display: flex;width:30%;justify-content: center">
                        <div style="margin-top: 7px;white-space: nowrap;">任意消费</div><input id="c-xiaofei_num"  data-rule="required" class="form-control" name="row[{$i}][xiaofei_num]" type="number" value="{$vo.xiaofei_num|htmlentities}"><div style="margin-top: 7px;white-space: nowrap;">单</div>
                    </ul>
                </div>
            </div>
            <input type="hidden" name="row[{$i}][group_id]" value="{$vo.group_id}">
        {/if}
        {if $vo.group_id eq 3}
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">晋升{$vo.name}条件:</label>
            <div class="col-xs-12 col-sm-8">
                <ul style="display: flex;justify-content: center;width:30%;">
                    <div style="margin-top: 7px;white-space: nowrap;">直推&nbsp;&nbsp;</div><input  data-rule="required" class="form-control" name="row[{$i}][direct_num]" type="number" value="{$vo.direct_num|htmlentities}"><div style="margin-top: 7px;white-space: nowrap;">人</div>
                </ul>
                <ul style="display: flex;justify-content: center;width:30%;">
                    <div style="margin-top: 7px;white-space: nowrap;">团队消费</div><input  data-rule="required" class="form-control" name="row[{$i}][team_xiaofei_money]" type="number" value="{$vo.team_xiaofei_money|htmlentities}"><div style="margin-top: 7px;white-space: nowrap;">元</div>
                </ul>
            </div>
        </div>
        {/if}
        {if $vo.group_id eq 4}
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">晋升{$vo.name}条件:</label>
            <div class="col-xs-12 col-sm-8">
                <ul style="display: flex;justify-content: center;width:30%;">
                    <div style="margin-top: 7px;white-space: nowrap;">直推&nbsp;&nbsp;</div><input id="c-direct_num" data-rule="required" class="form-control" name="row[{$i}][direct_num]" type="number" value="{$vo.direct_num|htmlentities}"><div style="margin-top: 7px;white-space: nowrap;">人</div>
                </ul>
                <ul style="display: flex;justify-content: center;width:30%;">
                    <div style="margin-top: 7px;white-space: nowrap;">团队消费</div><input  data-rule="required" class="form-control" name="row[{$i}][team_xiaofei_money]" type="number" value="{$vo.team_xiaofei_money|htmlentities}"><div style="margin-top: 7px;white-space: nowrap;">元</div>
                </ul>
                <ul style="display: flex;justify-content: center;width:30%;">
                    <div style="margin-top: 7px;white-space: nowrap;">{$vo.twogroup_name}</div><input  data-rule="required" class="form-control" name="row[{$i}][twogroup_num]" type="number" value="{$vo.twogroup_num|htmlentities}"><div style="margin-top: 7px;white-space: nowrap;">个</div>
                </ul>
            </div>
        </div>
        {/if}
    {if $vo.group_id eq 0}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">会员规则介绍:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" rows="5" name="row[{$i}][content]" cols="50">{$vo.content|htmlentities}</textarea>
        </div>
    </div>
    {/if}
        <input type="hidden" name="row[{$i}][group_id]" value="{$vo.group_id}">
    {/volist}
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>